package edu.yctc.weblog.controller.rest;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import edu.yctc.weblog.entity.PageDO;
import edu.yctc.weblog.entity.ResultDO;
import edu.yctc.weblog.vo.CheckDoneVO;
import edu.yctc.weblog.vo.CommentVO;

public interface CommentRestController {

    /**
     * 评论列表
     * 
     * @param params
     * @return
     */
    public ResultDO<PageDO> getCommentList(Map<String, Object> params);

    /**
     * 审核
     * 
     * @param ids
     * @return
     */
    public ResultDO<Void> checkDone(Long[] ids);

    /**
     * 回复
     * 
     * @param checkDoneVO
     * @return
     */
    public ResultDO<Void> reply(CheckDoneVO checkDoneVO);

    /**
     * 删除
     * 
     * @param ids
     * @return
     */
    public ResultDO<Void> delete(Long[] ids);

    /**
     * 评论
     * 
     * @param request
     * @param session
     * @param commentVO
     * @return
     */
    public ResultDO<Void> comment(HttpServletRequest request, HttpSession session, CommentVO commentVO);

}
